package cn.touna.jss.modules.credit.entity;

import java.util.ArrayList;
import java.util.List;

public class CreditRecordBlackEnityExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CreditRecordBlackEnityExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCrNoIsNull() {
            addCriterion("cr_no is null");
            return (Criteria) this;
        }

        public Criteria andCrNoIsNotNull() {
            addCriterion("cr_no is not null");
            return (Criteria) this;
        }

        public Criteria andCrNoEqualTo(String value) {
            addCriterion("cr_no =", value, "crNo");
            return (Criteria) this;
        }

        public Criteria andCrNoNotEqualTo(String value) {
            addCriterion("cr_no <>", value, "crNo");
            return (Criteria) this;
        }

        public Criteria andCrNoGreaterThan(String value) {
            addCriterion("cr_no >", value, "crNo");
            return (Criteria) this;
        }

        public Criteria andCrNoGreaterThanOrEqualTo(String value) {
            addCriterion("cr_no >=", value, "crNo");
            return (Criteria) this;
        }

        public Criteria andCrNoLessThan(String value) {
            addCriterion("cr_no <", value, "crNo");
            return (Criteria) this;
        }

        public Criteria andCrNoLessThanOrEqualTo(String value) {
            addCriterion("cr_no <=", value, "crNo");
            return (Criteria) this;
        }

        public Criteria andCrNoLike(String value) {
            addCriterion("cr_no like", value, "crNo");
            return (Criteria) this;
        }

        public Criteria andCrNoNotLike(String value) {
            addCriterion("cr_no not like", value, "crNo");
            return (Criteria) this;
        }

        public Criteria andCrNoIn(List<String> values) {
            addCriterion("cr_no in", values, "crNo");
            return (Criteria) this;
        }

        public Criteria andCrNoNotIn(List<String> values) {
            addCriterion("cr_no not in", values, "crNo");
            return (Criteria) this;
        }

        public Criteria andCrNoBetween(String value1, String value2) {
            addCriterion("cr_no between", value1, value2, "crNo");
            return (Criteria) this;
        }

        public Criteria andCrNoNotBetween(String value1, String value2) {
            addCriterion("cr_no not between", value1, value2, "crNo");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(String value) {
            addCriterion("type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(String value) {
            addCriterion("type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(String value) {
            addCriterion("type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(String value) {
            addCriterion("type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(String value) {
            addCriterion("type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(String value) {
            addCriterion("type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLike(String value) {
            addCriterion("type like", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotLike(String value) {
            addCriterion("type not like", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<String> values) {
            addCriterion("type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<String> values) {
            addCriterion("type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(String value1, String value2) {
            addCriterion("type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(String value1, String value2) {
            addCriterion("type not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andIdNoIsNull() {
            addCriterion("id_no is null");
            return (Criteria) this;
        }

        public Criteria andIdNoIsNotNull() {
            addCriterion("id_no is not null");
            return (Criteria) this;
        }

        public Criteria andIdNoEqualTo(String value) {
            addCriterion("id_no =", value, "idNo");
            return (Criteria) this;
        }

        public Criteria andIdNoNotEqualTo(String value) {
            addCriterion("id_no <>", value, "idNo");
            return (Criteria) this;
        }

        public Criteria andIdNoGreaterThan(String value) {
            addCriterion("id_no >", value, "idNo");
            return (Criteria) this;
        }

        public Criteria andIdNoGreaterThanOrEqualTo(String value) {
            addCriterion("id_no >=", value, "idNo");
            return (Criteria) this;
        }

        public Criteria andIdNoLessThan(String value) {
            addCriterion("id_no <", value, "idNo");
            return (Criteria) this;
        }

        public Criteria andIdNoLessThanOrEqualTo(String value) {
            addCriterion("id_no <=", value, "idNo");
            return (Criteria) this;
        }

        public Criteria andIdNoLike(String value) {
            addCriterion("id_no like", value, "idNo");
            return (Criteria) this;
        }

        public Criteria andIdNoNotLike(String value) {
            addCriterion("id_no not like", value, "idNo");
            return (Criteria) this;
        }

        public Criteria andIdNoIn(List<String> values) {
            addCriterion("id_no in", values, "idNo");
            return (Criteria) this;
        }

        public Criteria andIdNoNotIn(List<String> values) {
            addCriterion("id_no not in", values, "idNo");
            return (Criteria) this;
        }

        public Criteria andIdNoBetween(String value1, String value2) {
            addCriterion("id_no between", value1, value2, "idNo");
            return (Criteria) this;
        }

        public Criteria andIdNoNotBetween(String value1, String value2) {
            addCriterion("id_no not between", value1, value2, "idNo");
            return (Criteria) this;
        }

        public Criteria andMobileIsNull() {
            addCriterion("mobile is null");
            return (Criteria) this;
        }

        public Criteria andMobileIsNotNull() {
            addCriterion("mobile is not null");
            return (Criteria) this;
        }

        public Criteria andMobileEqualTo(String value) {
            addCriterion("mobile =", value, "mobile");
            return (Criteria) this;
        }

        public Criteria andMobileNotEqualTo(String value) {
            addCriterion("mobile <>", value, "mobile");
            return (Criteria) this;
        }

        public Criteria andMobileGreaterThan(String value) {
            addCriterion("mobile >", value, "mobile");
            return (Criteria) this;
        }

        public Criteria andMobileGreaterThanOrEqualTo(String value) {
            addCriterion("mobile >=", value, "mobile");
            return (Criteria) this;
        }

        public Criteria andMobileLessThan(String value) {
            addCriterion("mobile <", value, "mobile");
            return (Criteria) this;
        }

        public Criteria andMobileLessThanOrEqualTo(String value) {
            addCriterion("mobile <=", value, "mobile");
            return (Criteria) this;
        }

        public Criteria andMobileLike(String value) {
            addCriterion("mobile like", value, "mobile");
            return (Criteria) this;
        }

        public Criteria andMobileNotLike(String value) {
            addCriterion("mobile not like", value, "mobile");
            return (Criteria) this;
        }

        public Criteria andMobileIn(List<String> values) {
            addCriterion("mobile in", values, "mobile");
            return (Criteria) this;
        }

        public Criteria andMobileNotIn(List<String> values) {
            addCriterion("mobile not in", values, "mobile");
            return (Criteria) this;
        }

        public Criteria andMobileBetween(String value1, String value2) {
            addCriterion("mobile between", value1, value2, "mobile");
            return (Criteria) this;
        }

        public Criteria andMobileNotBetween(String value1, String value2) {
            addCriterion("mobile not between", value1, value2, "mobile");
            return (Criteria) this;
        }

        public Criteria andBlackreasonIsNull() {
            addCriterion("blackReason is null");
            return (Criteria) this;
        }

        public Criteria andBlackreasonIsNotNull() {
            addCriterion("blackReason is not null");
            return (Criteria) this;
        }

        public Criteria andBlackreasonEqualTo(String value) {
            addCriterion("blackReason =", value, "blackreason");
            return (Criteria) this;
        }

        public Criteria andBlackreasonNotEqualTo(String value) {
            addCriterion("blackReason <>", value, "blackreason");
            return (Criteria) this;
        }

        public Criteria andBlackreasonGreaterThan(String value) {
            addCriterion("blackReason >", value, "blackreason");
            return (Criteria) this;
        }

        public Criteria andBlackreasonGreaterThanOrEqualTo(String value) {
            addCriterion("blackReason >=", value, "blackreason");
            return (Criteria) this;
        }

        public Criteria andBlackreasonLessThan(String value) {
            addCriterion("blackReason <", value, "blackreason");
            return (Criteria) this;
        }

        public Criteria andBlackreasonLessThanOrEqualTo(String value) {
            addCriterion("blackReason <=", value, "blackreason");
            return (Criteria) this;
        }

        public Criteria andBlackreasonLike(String value) {
            addCriterion("blackReason like", value, "blackreason");
            return (Criteria) this;
        }

        public Criteria andBlackreasonNotLike(String value) {
            addCriterion("blackReason not like", value, "blackreason");
            return (Criteria) this;
        }

        public Criteria andBlackreasonIn(List<String> values) {
            addCriterion("blackReason in", values, "blackreason");
            return (Criteria) this;
        }

        public Criteria andBlackreasonNotIn(List<String> values) {
            addCriterion("blackReason not in", values, "blackreason");
            return (Criteria) this;
        }

        public Criteria andBlackreasonBetween(String value1, String value2) {
            addCriterion("blackReason between", value1, value2, "blackreason");
            return (Criteria) this;
        }

        public Criteria andBlackreasonNotBetween(String value1, String value2) {
            addCriterion("blackReason not between", value1, value2, "blackreason");
            return (Criteria) this;
        }

        public Criteria andBlacklevelIsNull() {
            addCriterion("blackLevel is null");
            return (Criteria) this;
        }

        public Criteria andBlacklevelIsNotNull() {
            addCriterion("blackLevel is not null");
            return (Criteria) this;
        }

        public Criteria andBlacklevelEqualTo(String value) {
            addCriterion("blackLevel =", value, "blacklevel");
            return (Criteria) this;
        }

        public Criteria andBlacklevelNotEqualTo(String value) {
            addCriterion("blackLevel <>", value, "blacklevel");
            return (Criteria) this;
        }

        public Criteria andBlacklevelGreaterThan(String value) {
            addCriterion("blackLevel >", value, "blacklevel");
            return (Criteria) this;
        }

        public Criteria andBlacklevelGreaterThanOrEqualTo(String value) {
            addCriterion("blackLevel >=", value, "blacklevel");
            return (Criteria) this;
        }

        public Criteria andBlacklevelLessThan(String value) {
            addCriterion("blackLevel <", value, "blacklevel");
            return (Criteria) this;
        }

        public Criteria andBlacklevelLessThanOrEqualTo(String value) {
            addCriterion("blackLevel <=", value, "blacklevel");
            return (Criteria) this;
        }

        public Criteria andBlacklevelLike(String value) {
            addCriterion("blackLevel like", value, "blacklevel");
            return (Criteria) this;
        }

        public Criteria andBlacklevelNotLike(String value) {
            addCriterion("blackLevel not like", value, "blacklevel");
            return (Criteria) this;
        }

        public Criteria andBlacklevelIn(List<String> values) {
            addCriterion("blackLevel in", values, "blacklevel");
            return (Criteria) this;
        }

        public Criteria andBlacklevelNotIn(List<String> values) {
            addCriterion("blackLevel not in", values, "blacklevel");
            return (Criteria) this;
        }

        public Criteria andBlacklevelBetween(String value1, String value2) {
            addCriterion("blackLevel between", value1, value2, "blacklevel");
            return (Criteria) this;
        }

        public Criteria andBlacklevelNotBetween(String value1, String value2) {
            addCriterion("blackLevel not between", value1, value2, "blacklevel");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}